package com.web44.springboot.listener;

import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;
import lombok.extern.slf4j.Slf4j;

/**
 * @Title: HelloListener
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/2/29 15:26
 */
@Slf4j
public class HelloListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
       log.info("程序已经启动了.....");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("程序销毁了.....");
    }
}
